package com.bsoft.gol.hcs.specialist.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import org.atag.dao.ext.HibernateExtendDAO;
import com.bsoft.gol.hcs.specialist.entity.FusAfterHealthEducation;

import java.util.List;

/**
 * description
 *
 * @author neoLin - 2022/05/26 19:07
 **/
public abstract class FusAfterHealthEducationDAO extends HibernateExtendDAO<FusAfterHealthEducation> {

    @DAOMethod(sql = " from FusAfterHealthEducation where  recordId = :recordId")
    public abstract List<FusAfterHealthEducation> queryHealthEducationByRecordId(@DAOParam("recordId")String recordId) ;

    @DAOMethod(sql = " select count(1) from FusAfterHealthEducation where recordId =:recordId and educationStatus =0 ")
    public abstract Long getCountContentByRecordId(@DAOParam("recordId") String recordId);
}
